package lmycc.test.demo.service;

import lmycc.test.demo.domain.Login_log;
import lmycc.test.demo.repository.LogRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
@Transactional
@Component
public class LogService {
    @Autowired
    private LogRepository logRepository;

    /*
    * 添加登录/登出 日志
    * @param login_Log
    * */
    public void login_Log(Login_log login_Log) {
        logRepository.save(login_Log);
    }
}
